package win.demonlegion.service.inte;

import win.demonlegion.mapper.BaseMapper;
import win.demonlegion.module.SysUserBean;

import java.util.List;

/**
 * 后台运营账号
 * Created by john on 2017/6/29.
 */
public interface SysUserService extends BaseMapper<SysUserBean> {
    SysUserBean login(String username, String password);
    int disableSysUser(String id);
    int enableSysUser(String id);
    int changePassword(String id, String oldPassword, String newPassword);
    int resetPassword(String id, String password);
    List<String> getUserRole(String userId);
    SysUserBean loadUserByUsername(String username);
}
